package com.juku2024.juku.db.entity;

import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
import androidx.room.TypeConverters;

import com.juku2024.juku.db.converter.PlayInfoConverters;
import com.juku2024.juku.db.converter.PlayInfoResponseConverters;
import com.juku2024.juku.model.BaseModel;
import com.juku2024.juku.model.PlayInfoModel;
import com.juku2024.juku.model.PlayInfoResponse;

import java.util.ArrayList;

@Entity(tableName = "videoDetailTable")
public class VideoDetailModel extends BaseModel {
    @PrimaryKey
    public long id;
    public String update_progress;
    public String director;
    public int eps;
    public int lockEps;
    public String description;
    public String pic;
    public String actor;
    public float score;
    public String subtitle;
    public String name;
    public String attributes;
    public String share_links;
    public int type_id;
    public String version;
    @Ignore
    public String playInfo;
    public int category;
    @TypeConverters(PlayInfoConverters.class)
    public ArrayList<PlayInfoModel> play_info;
    @Ignore
    public boolean isFavorite;
    @Ignore
    public boolean isWatching;

    @Ignore
    public boolean sp;
    @TypeConverters(PlayInfoResponseConverters.class)
    public ArrayList<PlayInfoResponse> sourcePlayList;
}
